import request from '@/utils/request'

/**
 * @description: 获取币别清单
 * @param {*} params
 * @return {*}
 */
export function getCurrencyClass(params) {
  return request({
    url: '/currency/class/list',
    params
  })
}

/**
 * @description: 新增币别
 * @param {*} data
 * @return {*}
 */
export function addCurrencyClassItem(data) {
  return request({
    url: '/currency/class/add',
    method: 'post',
    data
  })
}

/**
 * @description: 更新币别
 * @param {*} data
 * @return {*}
 */
export function updateCurrencyClassItem(data) {
  return request({
    url: '/currency/class/update',
    method: 'post',
    data
  })
}

/**
 * @description: 删除币别
 * @param {*} data
 * @return {*}
 */
export function deleteCurrencyClassItem(data) {
  return request({
    url: '/currency/class/delete',
    method: 'post',
    data
  })
}
